package org.opens.guava.utilites.eventBus.myeventbus;

import java.lang.reflect.Method;

public class MySubscriber {

    private final Object mySubscribeObject;

    private final Method mySubscribeMethod;

    /**
     * 这个标记为的作用是:
     *      1. 在MyRegistryTable类中的注册表中不执行物理删除, 执行逻辑删除, 因为物理删除会对树结构产生较大变化.
     */
    private boolean disable = false;

    public MySubscriber(Object mySubscribeObject, Method mySubscribeMethod) {
        this.mySubscribeObject = mySubscribeObject;
        this.mySubscribeMethod = mySubscribeMethod;
    }

    public Object getMySubscribeObject() {
        return mySubscribeObject;
    }

    public Method getMySubscribeMethod() {
        return mySubscribeMethod;
    }

    public boolean isDisable() {
        return disable;
    }

    public void setDisable(boolean disable) {
        this.disable = disable;
    }
}
